import random

def generate_data(num_children, num_cookies, max_gastronomy, max_cookie_size):
    # 生成随机的胃口值和饼干尺寸
    g = [random.randint(1, max_gastronomy) for _ in range(num_children)]
    s = [random.randint(1, max_cookie_size) for _ in range(num_cookies)]
    
    return g, s

if __name__ == "__main__":
    num_children = 10  # 孩子的数量
    num_cookies = 10   # 饼干的数量
    max_gastronomy = 10  # 胃口值的最大值
    max_cookie_size = 10  # 饼干尺寸的最大值
    
    g, s = generate_data(num_children, num_cookies, max_gastronomy, max_cookie_size)
    print("孩子的胃口值:", g)
    print("饼干的尺寸:", s)